package com.example.daibanshiwu.pojo;

public class ArchiveDTO {
    private Long archiveId;         // 序号 (来自 archive.archive_id)
    private String transactionName;   // 事务名称 (来自 message.title)
    private String groupName;         // 类型/分组 (来自 group.group_name)
    private String status;            // 状态 (固定为 "已完成")
    private String completionDate;    // 完成日期 (来自 record.process_time)
    // 【修正】此字段现在代表发布者，来自与 sender_user_id 关联的 t_user 表
    private String publisherName;     // 发布者 (来自 user.name, 关联 sender_user_id)
    // 【新增】新增处理人姓名字段
    private String processorName;     // 处理人 (来自 user.name, 关联 receiver_user_id)
    // --- 新增字段 ---
    private String startTime;
    private String endTime;

    // --- 构造函数 ---
    public ArchiveDTO() {
    }

    public ArchiveDTO(Long archiveId, String transactionName, String groupName, String status, String completionDate, String publisherName) {
        this.archiveId = archiveId;
        this.transactionName = transactionName;
        this.groupName = groupName;
        this.status = status;
        this.completionDate = completionDate;
        this.publisherName = publisherName;
    }


    // --- Getter 和 Setter 方法 ---
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
    public String getProcessorName() {
        return processorName;
    }

    public void setProcessorName(String processorName) {
        this.processorName = processorName;
    }
    public Long getArchiveId() {
        return archiveId;
    }

    public void setArchiveId(Long archiveId) {
        this.archiveId = archiveId;
    }

    public String getTransactionName() {
        return transactionName;
    }

    public void setTransactionName(String transactionName) {
        this.transactionName = transactionName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCompletionDate() {
        return completionDate;
    }

    public void setCompletionDate(String completionDate) {
        this.completionDate = completionDate;
    }

    public String getPublisherName() {
        return publisherName;
    }

    public void setPublisherName(String publisherName) {
        this.publisherName = publisherName;
    }
}